home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
ShareMailGiftware
/
WHDload_Paket
/
WHDload_Demos
/
Andromeda_Mindriot.lha
/
Mindriot
/
Install_Mindriot
next >
Wrap
Text File
|
2000-10-29
|
2KB
|
100 lines
;****************************
(set #readme-file "mindriothd.readme") ;name of readme file
(set #cleanup "") ;files to delete after install
;****************************
;----------------------------
; Checks if given program is reachable via the path
; if not abort install
; IN: #program - to check
; OUT: -
(procedure P_chkrun
(if
(= 0 (run ("cd SYS:\nWhich %s" #program)))
("")
(abort ("You must install \"%s\" first !\nIt must be accessible via the path.\nYou can find it in the WHDLoad package." #program))
)
)
;****************************
(if
(exists #readme-file)
(if
(= 0 (run ("SYS:Utilities/Multiview %s" #readme-file)))
("")
(run ("SYS:Utilities/More %s" #readme-file))
)
)
(set #program "WHDLoad")
(P_chkrun)
(set @default-dest
(askdir
(prompt ("Where is \"%s\" installed ?\n" @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @default-dest))
;----------------------------
(copyfiles
(help @copyfiles-help)
(source ("%s.Slave" @app-name))
(dest #dest)
)
(if
(exists ("%s.newicon" @app-name))
(set #icon
(askchoice
(prompt "\nWhich icon do you like to install ?\n")
(default 0)
(choices "Normal" "NewIcon")
(help @askchoice-help)
)
)
(set #icon 0)
)
(select #icon
(set #icon ("%s.inf" @app-name))
(set #icon ("%s.newicon" @app-name))
)
(copyfiles
(help @copyfiles-help)
(source #icon)
(newname ("%s.info" @app-name))
(dest #dest)
)
(if
(exists #readme-file)
(copyfiles
(help @copyfiles-help)
(source #readme-file)
(dest #dest)
)
)
(if
(exists ("%s.info" #readme-file))
(copyfiles
(help @copyfiles-help)
(source ("%s.info" #readme-file))
(dest #dest)
)
)
(run ("cd \"%s\"\nRename Andromeda.MindRiot Mindriot.exe" #dest))
;----------------------------
(run ("Delete %s ALL QUIET FORCE" #cleanup))
(exit)